import request from '@/utils/request'

export function getWeekEnergy() {
  return request({
    url: 'api/SysDashboard/weekEnergy',
    method: 'get'
  })
}

export function getWeekDeviceEnergy() {
  return request({
    url: 'api/SysDashboard/weekDeviceEnergy',
    method: 'get'
  })
}

export function getDeptEnergy() {
  return request({
    url: 'api/SysDashboard/weekDeptEnergy',
    method: 'get'
  })
}

export function getDeptDeviceEnergy() {
  return request({
    url: 'api/SysDashboard/weekDeptDeviceEnergy',
    method: 'get'
  })
}

export default {getWeekEnergy, getWeekDeviceEnergy, getDeptEnergy, getDeptDeviceEnergy}
